package asteroids.model.programs.expression;

import asteroids.model.programs.type.*;
import asteroids.model.Ship;

public class GetDirection extends Getter {

	public GetDirection(int line, int column) {
		super(line, column, new Self(line, column));
	}
	
	public DoubleType getValue(){
		return new DoubleType(((Ship) ((Entity) getExpression().getValue()).getValue()).getDirection());
	}

}
